package com.kaoshi.management.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kaoshi.management.pojo.XtRoles;
import com.kaoshi.management.mapper.XtRolesMapper;
import com.kaoshi.management.service.XtRolesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-11-07
 */
@Service
public class XtRolesServiceImpl extends ServiceImpl<XtRolesMapper, XtRoles> implements XtRolesService {
    @Autowired
    private XtRolesMapper xtRolesMapper;


    @Override
    public Page<XtRoles> getPageList(Integer current, Integer pageSize, XtRoles xtRoles) {
        Page<XtRoles> page = new Page<>(current, pageSize);

        LambdaQueryWrapper<XtRoles> queryWrapper = new LambdaQueryWrapper<>();

        return baseMapper.selectPage(page,queryWrapper);

    }
}
